using System;
using System.Web.UI;

using MettleSystems.dashCommerce.Content;
using MettleSystems.dashCommerce.Store;

namespace MettleSystems.dashCommerce.Web
{
	public partial class _default : PageBuilder
	{

		#region Member Variables

		//private SiteSettings _siteSettings;

		#endregion

		#region Page Events

		/// <summary>
		/// Handles the Load event of the Page control.
		/// </summary>
		/// <param name="sender">The source of the event.</param>
		/// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
		protected void Page_Load(object sender, EventArgs e)
		{
			//Page.Title = string.Format(WebUtility.MainTitleTemplate, Master.SiteSettings.SiteName, base.Title);
			this.LocalizedTitleKey = base.Title;
			Master.HideSeoInformation = true;
		}

		#endregion

		#region Properties

		/// <summary>
		/// Gets or sets the name of the style sheet applied to this page.
		/// </summary>
		/// <value></value>
		/// <returns>The name of the style sheet applied to this page.</returns>
		/// <exception cref="T:System.InvalidOperationException">The <see cref="P:System.Web.UI.Page.StyleSheetTheme"/> property is set before the <see cref="E:System.Web.UI.Control.Init"/> event completes.</exception>
		public override string StyleSheetTheme
		{
			get { return SiteSettings.Theme; }
		}

		///// <summary>
		///// Gets the site settings.
		///// </summary>
		///// <value>The site settings.</value>
		//public SiteSettings SiteSettings {
		//  get {
		//    if (_siteSettings == null)
		//      _siteSettings = MettleSystems.dashCommerce.Core.Caching.SiteSettingCache.GetSiteSettings();
		//    return _siteSettings;
		//  }
		//}

		#endregion

	}
}